<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

</body>
<script type="text/javascript">
  /**
   * @param {string[]} strs
   * @return {null}
   */
  let longestCommonPrefix = function (strs) {
    for (let i = 0; i < strs.length; i++) {
      console.log(strs.sort());
    }
  };
  let strs = ["flower", "flow", "flight"];
  longestCommonPrefix(strs);
</script>
</html>